package com.xingkeduo.dto.param;

import com.xingkeduo.pojo.enums.CommentStar;
import com.xingkeduo.pojo.table.Comments;
import com.xingkeduo.utils.TableAnnotations;
import lombok.Data;

import javax.validation.constraints.NotBlank;


/**
 * 评论添加参数
 */
@Data
public class CommentInitDto {


    //    @NotBlank(message = "订单id不能为空")
    private int orderId;

//    @NotNull(message = "服务评分不能为空")
    private CommentStar commentStar;

    @NotBlank(message = "评价标签不能为空")
    private String judgementLabel;

    @NotBlank(message = "评价内容不能为空")
    private String commentNotFilter;

    private String picIds;

    private Boolean anonymous;

    @TableAnnotations("评价（已过滤）")
    private String comment;

    public void covert(String commentNotFilter){
        this.comment=commentNotFilter;
    }


}
